import request from '@/utils/request'

export function getsystem() {
  return request({
    url: '/system/data',
    method: 'get'
  })
}
  
export function getalarmData() {
  return request({
    url: 'system/alarmData',
    method: 'get'
  })
}

export function getequipmentlist(params) {
  return request({
    url: 'equipment/list',
    method: 'get',
    params: params // 将参数对象传递给 request 方法的 params 属性
  });
}

export function getTitle() {
  return request({
    url: 'project/getTitle',
    method: 'get',
  });
}

export function getWeather() {
  return request({
    url: 'project/getWeather',
    method: 'get',
  });
}
export function getfaultCount(params) {
  return request({
    url: 'equipment/list',
    method: 'get',
    params: params // 将参数对象传递给 request 方法的 params 属性
  });
}